{% set clazz = "white notice" %}
{% set title = '公告详情'; %}
{% extends './modules/common/templates/main.html' %}
{% block content %}
  {% if !nested %}
    <header class="bar bar-header">
      {{ macro.back() }}
      <h1 class="title">{{ title }}</h1>
    </header>
  {% endif %}
  <section>
    <div class="article" ui-mode="center">
      <h2>{{ notice.name }}</h2>
      <time>{{ notice.createTime|date('Y-m-d')}}</time>
      <div class="content">{{ notice.content|rmstyle|safe }}</div>
      <div class="content">
      {% for item in notice.imgs %}
        <img class="center-block" src="{{ item }}" />
      {% endfor %}
      </div>
    </div>
  </section>
  {% if isManager %}
    <footer class="bar bar-footer bar-fixed bar-flat">
      <button class="button warning light square">删除公告</button>
    </footer>
  {% endif %}
{% endblock %}
{% block script %}
  {% parent %}
  <script src="{{ '/static/js/group.js'|version }}"></script>
{% endblock %}